import request from '@/utils/request'

// 查询条码页面字段映射列表
export function listPagefield(query) {
  return request({
    url: '/barcode/pagefield/list',
    method: 'get',
    params: query
  })
}

// 查询条码页面字段映射详细
export function getPagefield(id) {
  return request({
    url: '/barcode/pagefield/' + id,
    method: 'get'
  })
}

// 新增条码页面字段映射
export function addPagefield(data) {
  return request({
    url: '/barcode/pagefield',
    method: 'post',
    data: data
  })
}

// 修改条码页面字段映射
export function updatePagefield(data) {
  return request({
    url: '/barcode/pagefield',
    method: 'put',
    data: data
  })
}

// 删除条码页面字段映射
export function delPagefield(id) {
  return request({
    url: '/barcode/pagefield/' + id,
    method: 'delete'
  })
}

export function savePagefield(data) {
  return request({
    url: '/barcode/pagefield/save',
    method: 'post',
    data: data
  })
}
